//
//  HWQuFuXiaoHaoTableViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/10/26.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWQuFuXiaoHaoTableViewCell.h"

@interface HWQuFuXiaoHaoTableViewCell()
@property(strong,nonatomic) UILabel *datelabel;
@property(strong,nonatomic) UILabel *jifenLabe;
@property(strong,nonatomic) UIButton *deleteBut;
@property(strong,nonatomic) UIButton *sellBut;


@end

@implementation HWQuFuXiaoHaoTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setupUI];
        
        
    }
    
    
    return self;
    
    
    
}



-(void)setupUI {
    
      self.datelabel  = [[UILabel alloc]initWithFrame:CGRectMake(12, 0, (kScreenW-24)/3, 36)];
       self.datelabel.text = @"1";
       self.datelabel.font = [UIFont systemFontOfSize:10];
       self.datelabel.textColor = RGB(102,102,102);
       self.datelabel.numberOfLines = 2;
       self.datelabel.textAlignment = NSTextAlignmentCenter;
       [self.contentView addSubview:self.datelabel];
      
      
      self.jifenLabe  = [[UILabel alloc]initWithFrame:CGRectMake(12+(kScreenW-24)/3, 0, (kScreenW-24)/3, 36)];
      self.jifenLabe.text = @"+50";
      self.jifenLabe.font = [UIFont systemFontOfSize:10];
      self.jifenLabe.textColor = RGB(102,102,102);
      self.jifenLabe.numberOfLines = 2;
      self.jifenLabe.textAlignment = NSTextAlignmentCenter;
      [self.contentView addSubview:self.jifenLabe];
      
      
//       self.xiugailabel  = [[UILabel alloc]initWithFrame:CGRectMake(kScreenW/3*2, 0, kScreenW/3, 36)];
//       self.xiugailabel.text = @"新手任务—修改头像";
//       self.xiugailabel.font = [UIFont systemFontOfSize:10];
//       self.xiugailabel.textColor = RGB(102,102,102);
//       self.xiugailabel.numberOfLines = 2;
//       self.xiugailabel.textAlignment = NSTextAlignmentCenter;
//       [self.contentView addSubview:self.xiugailabel];
//
//
      

         
      
      
      
      
      
      
      UIView *fengexianview = [[UIView alloc]initWithFrame:CGRectMake(12, 0, kScreenW-24, 1)];
      fengexianview.backgroundColor = RGB(232, 232, 242);
      [self.contentView addSubview:fengexianview];
    
      UIView *shuxian0 = [[UIView alloc]initWithFrame:CGRectMake(12, 0, 1,36)];
      shuxian0.backgroundColor = RGB(232, 232, 242);
      [self.contentView addSubview:shuxian0];
      
      UIView *shuxian1 = [[UIView alloc]initWithFrame:CGRectMake(12+(kScreenW-24)/3, 0, 1,36)];
         shuxian1.backgroundColor = RGB(232, 232, 242);
         [self.contentView addSubview:shuxian1];
         
       UIView *shuxian2 = [[UIView alloc]initWithFrame:CGRectMake(12+(kScreenW-24)/3*2, 0, 1, 36)];
       shuxian2.backgroundColor = RGB(232, 232, 242);
       [self.contentView addSubview:shuxian2];
    
    
    UIView *shuxian3 = [[UIView alloc]initWithFrame:CGRectMake(12+(kScreenW-24)/3*3, 0, 1, 36)];
     shuxian3.backgroundColor = RGB(232, 232, 242);
     [self.contentView addSubview:shuxian3];
      
      
        UIView *fengexianview1 = [[UIView alloc]initWithFrame:CGRectMake(12, 35, kScreenW-24, 1)];
        fengexianview1.backgroundColor = RGB(232, 232, 242);
        self.zuixianbianfengexxianView = fengexianview1;

        [self.contentView addSubview:fengexianview1];
    
    
       CGFloat w =  ((kScreenW-24)/3 - 25*2)/3;
       self.deleteBut = [UIButton buttonWithType:UIButtonTypeCustom];
       self.deleteBut.frame = CGRectMake(12+(kScreenW-24)/3*2+w, 0, 25, 36);
       [self.deleteBut setTitle:@"删除" forState:UIControlStateNormal];
       self.deleteBut.titleLabel.font = [UIFont systemFontOfSize:12];
       [self.deleteBut  setTitleColor:RGB(255, 21, 21) forState:UIControlStateNormal];
      [self.deleteBut addTarget:self action:@selector(deletetap) forControlEvents:UIControlEventTouchUpInside];
    
    
       
     //   self.deleteBut.backgroundColor  = [UIColor yellowColor];
       [self.contentView addSubview: self.deleteBut];
    
    
    
       self.sellBut = [UIButton buttonWithType:UIButtonTypeCustom];
       self.sellBut.frame = CGRectMake(12+(kScreenW-24)/3*2+w*2+25, 0, 25, 36);
       [self.sellBut setTitle:@"删除" forState:UIControlStateNormal];
       self.sellBut.titleLabel.font = [UIFont systemFontOfSize:12];
       [self.sellBut  setTitleColor:RGB(253, 178, 50) forState:UIControlStateNormal];
       // self.sellBut.backgroundColor  = [UIColor yellowColor];
       [self.sellBut addTarget:self action:@selector(sellButtap) forControlEvents:UIControlEventTouchUpInside];
       [self.contentView addSubview: self.sellBut];
    
    
    
    
}


- (void)deletetap {
    
    DLog(@"122589");
    
     
    
}

- (void)sellButtap {
    
     DLog(@"nishiwode");
    
}






@end
